GtkIconTheme: Repair symbolic fallback with rtl/ltr
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Sep 2014 18:46:09 +0000 (14:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Sep 2014 18:49:22 +0000 (14:49 -0400)
commit964c202c389abd264b8dd7f5858cd827f3540a00
tree0e3ec9977f85c79883d05d21247ac2ffda95fe69
parent1b858e4212f45e214d5d253dd0dba57845254a06
GtkIconTheme: Repair symbolic fallback with rtl/ltr

For symbolic icons, we prefer symbolics in inherited themes over
generic icons in the theme itself. So far this was implemented
by looking at icon_name[0] and looking that up in inherited themes
if it is symbolic. But with automatic rtl/ltr handling, the first
icon  name will always have an -rtl or -ltr suffix, and an icon
with that suffix is not going to exist in most cases. To fix this,
look for shorter icon names too, as long as they are still symbolic.

https://bugzilla.gnome.org/show_bug.cgi?id=737000
gtk/gtkicontheme.c